#include <string>
#include "MarketPrices.h"

using namespace std;

#pragma once
class Item
{
public:
	Item() : itemName(""), price(0, 0, 0), weight(0) {}
	Item(const string& name, int c, int s, int g, float w) : itemName(name), price(c, s, g), weight(w) {}
	Item(const string& name, const MarketPrices& mp, float w) : itemName(name), price(mp), weight(w) {}
	~Item();
	Item(const Item&);
	Item& Item::operator=(const Item&);

	//accessors
	string getName() const { return itemName; }
	MarketPrices getPrice() const { return price; }
	float getWeight() const { return weight; }

	//mutators
	void setName(const string& n) { itemName = n; }
	void setPrice(const MarketPrices& p) { price = p; }
	void setWeight(const float w) { weight = w; }
protected:
	string itemName;
	MarketPrices price;
	float weight;
};
